
var sys = require('sys'), dir = require('./dir'), fs = require('fs');


var file = process.argv.pop();
if (!fs.statSync(file).isDirectory()) {
	sys.puts('usage: node app.js <file|directory>');
	process.exit();
}

function cb(file,data) {
	sys.puts(file);
}

dir.watchDir(file,cb);



